* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* font-family: Arial, sans-serif; */
  font-size: 14px;
  font-family: PingFang SC;
}

/* 顶部导航栏样式 */
.top-navbar {
  background-color: #333;
  color: white;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav-categories {
  display: flex;
  list-style: none;
}

.nav-categories li {
  margin-right: 30px;
  cursor: pointer;
}

.nav-categories li:hover {
  color: #409eff;
}

/* 主体内容布局 */
.main-container {
  display: flex;
  margin-top: 60px;
  min-height: calc(100vh - 60px);
}

/* 左侧菜单栏样式 */
.sidebar {
  width: 200px;
  background-color: #f5f5f5;
  padding: 20px 0;
  position: fixed;
  top: 60px;
  bottom: 0;
  overflow-y: auto;
}

.menu-items {
  list-style: none;
}

.menu-items li {
  padding: 15px 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.menu-items li:hover {
  background-color: #e6f7ff;
  color: #409eff;
}

/* 内容展示区 */
.content-area {
  flex: 1;
  margin-left: 200px;
  padding: 20px;
}

/* 筛选和排序区域 */
.filter-sort-section {
  background-color: #fff;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filters, .sort-options {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.filters > div, .sort-options > div {
  margin-right: 20px;
}

.filter-label, .sort-label {
  font-weight: bold;
  margin-right: 10px;
}

.filter-tags {
  display: inline-block;
  padding: 5px 10px;
  /* background-color: #f0f0f0; */
  border-radius: 3px;
  margin-right: 10px;
  cursor: pointer;
  color: rgba(23,24,26,.65);
}

.filter-tags.active {
  background-color: #eceef3;
  color: #3388ff;
  font-weight: bold;
}

/* 模板网格展示区 */
.templates-grid {
  /* display: grid; */
  /* grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); */
  /* gap: 20px; */
}

.template-card {
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  width: 295px;
  display: inline-block;
  margin-left: 12px;
  margin-bottom: 12px;
}

.template-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.template-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.template-info {
  padding: 10px;
}

.template-title {
  font-weight: bold;
  margin-bottom: 5px;
}

.template-meta {
  font-size: 12px;
  color: #666;
}

/* 底部功能区 */
.footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  text-align: left;
}

.footer-section h4 {
  margin-bottom: 10px;
  color: #409eff;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 5px;
  cursor: pointer;
}

.footer-section ul li:hover {
  color: #409eff;
}

.copyright {
  margin-top: 20px;
  border-top: 1px solid #555;
  padding-top: 10px;
}
.filter-tags-container {

}